#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# Copyright [Gtlions Lai].
# Create Date:
# Update Date:
"""summarization ahout this script.

detail ahout this script

   Class(): summarization about Class
   ...
   function(): summarization about function
   ...
"""
__authors__ = '"Gtlions Lai" <gtlions.l@qq.com>'

import sys
from PyQt4 import QtGui, QtCore


class Main(QtGui.QWidget):
    def __init__(self, parent=None):
        QtGui.QWidget.__init__(self)
        self.setWindowTitle('Radio Button')
        self.setGeometry(0, 0, 1000, 1000)
        grid = QtGui.QGridLayout()
        self.setLayout(grid)

        tabwidget = QtGui.QTabWidget()
        tabwidget.setTabPosition(QtGui.QTabWidget.West)
        tab1 = QtGui.QWidget()
        tab2 = QtGui.QWidget()
        b1 = QtGui.QPushButton('b1', tab1)
        b1.setGeometry(100, 100, 100, 100)
        b2 = QtGui.QPushButton('b2', tab1)
        b2.setGeometry(100, 200, 100, 100)
        tabwidget.addTab(tab1, u'系统管理')
        tabwidget.addTab(tab2, u'销售管理')
        grid.addWidget(tabwidget)

if __name__ == "__main__":
    app = QtGui.QApplication(sys.argv)
    main = Main()
    main.show()
    sys.exit(app.exec_())